package com.dmz.wxcp.wecom.contact.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dmz.wxcp.wecom.contact.entity.Contact;
import com.dmz.wxcp.wecom.contact.mapper.ContactMapper;
import com.dmz.wxcp.wecom.contact.service.ContactService;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.mp.api.WxMpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ContactServiceImpl extends ServiceImpl<ContactMapper, Contact> implements ContactService {

    @Autowired
    private WxMpService wxMpService;

    @Autowired
    private ContactMapper contactMapper;
    @Override
    public Object getMembers() throws WxErrorException {
        return null;
    }

    @Override
    public Boolean isUserEnabled(String userId) throws WxErrorException {
        return null;
    }

//    判断是否存在contact
    @Override
    public Integer selectCountByOpenId(String openid) {
       return contactMapper.selectCountByOpenId(openid);
    }
}
